﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="customerEdit.aspx.cs" Inherits="PeisongWeb.admin.customerEdit" %>

<%@ Register Assembly="Coolite.Ext.Web" Namespace="Coolite.Ext.Web" TagPrefix="ext" %>
<%@ Register TagName="menu" Src="controls/menu.ascx" TagPrefix="uc2" %>
<%@ Register TagName="top" Src="controls/top.ascx" TagPrefix="uc1" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1" runat="server">
    <title>企业用户编辑 - 想购网长期采购物流配送系统</title>
    <!--#include file="style.inc"-->
</head>
<body>
    <form id="form1" runat="server">
    <ext:ScriptManager ID="ScriptManager1" runat="server" />
    <uc1:top ID="Top1" runat="server" />
    <uc2:menu ID="Menu1" runat="server" />
    <div id="admin_main" style="margin: 10px 0 0 10px;">
        <ext:Panel ID="panel_Title" runat="server" Title="企业用户编辑" BodyStyle="padding:5px 5px 0"
            Width="650" Frame="true" ButtonAlign="Center">
            <Body>
                <ext:Panel ID="Panel3" runat="server">
                    <Body>
                        <ext:ColumnLayout ID="ColumnLayout1" runat="server">
                            <ext:LayoutColumn ColumnWidth=".5">
                                <ext:Panel ID="Panel4" runat="server" Border="false" Header="false">
                                    <Body>
                                        <div id="admin_edit_content">
                                            <ul>
                                                <li>
                                                    <label>
                                                        用户名 *
                                                    </label>
                                                    <asp:TextBox runat="server" ID="txt_Username" MaxLength="50"></asp:TextBox>
                                                    <asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" ControlToValidate="txt_Username"
                                                        ErrorMessage="请输入用户名" Display="Dynamic"></asp:RequiredFieldValidator>
                                                    <input type="hidden" runat="server" id="hid_Pwd" value="123123"/>
                                                </li>
                                                
                                                <li>
                                                    <label>
                                                        姓 名 *
                                                    </label>
                                                    <asp:TextBox runat="server" ID="txt_Realname" MaxLength="50"></asp:TextBox>
                                                    <asp:RequiredFieldValidator ID="RequiredFieldValidator6" runat="server" ControlToValidate="txt_Realname"
                                                        ErrorMessage="请输入姓名" Display="Dynamic"></asp:RequiredFieldValidator>
                                                </li>
                                                <li>
                                                    <label>
                                                        联系电话
                                                    </label>
                                                    <asp:TextBox runat="server" ID="txt_Phone" MaxLength="50"></asp:TextBox>
                                                </li>
                                                <li>
                                                    <label>
                                                        Email
                                                    </label>
                                                    <asp:TextBox runat="server" ID="txt_Email" MaxLength="50"></asp:TextBox>
                                                    <asp:RegularExpressionValidator ID="RegularExpressionValidator1" runat="server" ControlToValidate="txt_Email"
                                                        Display="Dynamic" ErrorMessage="请输入有效的email地址" ValidationExpression="\w+([-+.]\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*"></asp:RegularExpressionValidator>
                                                </li>
                                                
                                                <li>
                                                    <label>
                                                        是否为管理员
                                                    </label>
                                                    <input runat="server" type="checkbox" id="chx_isAdmin" name="check1" />
                                                    是 </li>
                                                <li>
                                                    <label>
                                                        是否禁用
                                                    </label>
                                                    <input runat="server" type="checkbox" id="chx_isRefuse" name="check2" />
                                                    是 </li>
                                                <li runat="server" id="li_expireDt">
                                                    <label>
                                                        有效期*
                                                    </label>
                                                    <ext:DateField ID="ext_expireDt" runat="server" AllowBlank="true" ReadOnly="true" />
                                                </li>
                                                <li>
                                                    <label>
                                                        &nbsp;
                                                    </label>
                                                    <span style="<%=power>=2?"": "display:none" %>">
                                                        <asp:Button runat="server" ID="btn_Save" Text="保 存" OnClick="btn_Save_Click" />
                                                    </span>
                                                    <input type="button" id="btn_Return" value="返 回" onclick="javascript:history.back();" />
                                                </li>
                                                <li runat="server" id="li_updatepwd">
                                                    <label>修改密码</label>
                                                    <asp:TextBox runat="server" ID="txt_Pwd" TextMode="Password" MaxLength="50"></asp:TextBox>
                                                    <asp:LinkButton ID="lbt_updatePwd" runat="server" OnClick="lbt_updatePwd_Click">确认</asp:LinkButton>
                                                </li>
                                            </ul>
                                        </div>
                                    </Body>
                                </ext:Panel>
                            </ext:LayoutColumn>
                        </ext:ColumnLayout>
                    </Body>
                </ext:Panel>
            </Body>
        </ext:Panel>
    </div>
    </form>
</body>
</html>
